//
//  CommonUtil.m
//  mengbutou
//
//  Created by Jiafei Wei on 16/7/6.
//  Copyright © 2016年 Jiafei Wei. All rights reserved.
//

#import "CommonUtil.h"
#import "AppDelegate.h"
#import <Foundation/Foundation.h>
@implementation CommonUtil

+(void)setPassword:(NSString *)value forKey:(NSString *)keyValue{
    NSUserDefaults *d = [NSUserDefaults standardUserDefaults];
    [d setObject:value forKey:keyValue];
    [d synchronize];
}
+(instancetype)getValueForKey:(NSString *)key{
      NSUserDefaults *d = [NSUserDefaults standardUserDefaults];
    return  [d objectForKey:key];
}

@end
